/*
 * LetC.cpp
 *
 *  Created on: Aug 20, 2011
 *      Author: jay
 */

//#include <GL/glut.h>
#include <GL/freeglut_std.h>
#include <stdlib.h>
#include <shapefil.h>
#include <vector>
#include "shapDraw.h"
#include <iostream>
using namespace std;


/*

void paintGL()
{
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    draw();
}*/

int main(int argc, char** argv)
{
	glutInit(&argc, argv);
	glutInitDisplayMode (GLUT_SINGLE| GLUT_RGB);
	glutInitWindowSize (600,600);
	glutCreateWindow ("Render Shapefiles");
	initializeGL();

	//OpenShapeFile((char*)"/media/JAY/shapea/31002450PAN_cont.shp");//Line Shapefile
	OpenShapeFile((char*)"/media/MULTIMEDIA/IIITB/3sem/OPEN_GL/Sample_shapefile/shape_eg_data/masspntz.shp");//Line Shapefile
	//OpenShapeFile((char*)"/home/jay/workspace/Testing/naip/naip.shp");//Line Shapefile
	//OpenShapeFile((char*)"/home/jay/workspace/Testing/Shapefiles/poi.shp");//Point Shapefile
	//OpenShapeFile((char*)"/home/jay/workspace/Testing/Shapefiles/gruenflaechen.shp");//Polygon Shapefile

	glutReshapeFunc (resizeGL);
	glutDisplayFunc (paintGL);
	glutMainLoop();
   return 0;
}

